package com.wmy.luckywheel.service.impl;

import com.wmy.luckywheel.entity.po.Record;
import com.wmy.luckywheel.mapper.RecordMapper;
import com.wmy.luckywheel.service.RecordService;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author Sian37
 */
@RequiredArgsConstructor
@Service
@Slf4j
public class RecordServiceImpl implements RecordService {

    private final RecordMapper recordMapper;


    @Override
    public List<Record> queryList() {
        return recordMapper.queryList();
    }

    @Override
    public void add(Record record) {
        recordMapper.add(record);
    }
}
